import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

export class AnalysisDto {
  @ApiProperty({ description: '文本' })
  @IsString()
  text: string;
}

export class AnalysisResDto {
  @ApiProperty({ type: () => String, isArray: true })
  grammar: string[];

  @ApiProperty({ type: () => String, isArray: true })
  collocations: string[];
}
